<div id='top'><header><h3><i class="fa fa-cog fa-spin fa-2x"></i> 661406.com 管理后台</h3><img src="/image/viwik_sl_101156115677043.jpg" style='visibility:hidden;'><span><i style="font-style: normal;">欢迎登录</i> <i class="fa fa-smile-o"></i> <i v-text='admin' @click='user_add()' style='cursor:pointer;'></i></span><a href="../php/tc.php"><i class="fa fa-send-o fa-2x"></i></a></header></div>
<script src='/js/vue/vue.js'></script>
<script>
  var str=new Vue({
   	 el:'#top',
   	  data:{
   	  	  admin:''
   	  },methods:{
	      user_add(){
		      layer.open({
                 type: 2,
                 title: '修改密码',
                 shadeClose: true,
                 shade: 0.2,
                 area: ['250px', '32%'],
                 content: '/admin.php/index/user_add' //iframe的url
             }); 
		  }
	  },
      created(){
      	let self=this;
      	 $.ajax({
      	 	url:'//xiaomishop.com/admin.php/index/get_admin',
      	 	type:'post',
      	 	dataType:'json',
      	 	success:function(res){
      	 		self.admin=res.admin;
      	 		if(res.status!='ok'){
                     location.href='//xiaomishop.com/admin.php';
      	 		}
      	 	}
      	 });
      }
   });
</script>